home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: presby.edu!jtbell
- From: jtbell@presby.edu (Jon Bell)
- Subject: Re: using pow ( power command (n^m))
- Message-ID: <Dpu1sL.22I@presby.edu>
- Date: Sun, 14 Apr 1996 03:31:33 GMT
- References: <00001a81+0000b20f@msn.com>
- Organization: Presbyterian College, Clinton, South Carolina USA
-
- MATTHEW MALMIN <MTROY@msn.com> wrote:
- >how do you use the pow command?
-
- 'pow' is a math library function, not a "command" (or "statement" as we
- prefer to call them).
-
- >i want to do this
- >total = total ^ num;
- >how do i do this command in c++
-
- Try
- total = pow (total, num)
-
- --
- Jon Bell <jtbell@presby.edu> Presbyterian College
- Dept. of Physics and Computer Science Clinton, South Carolina USA
-